import request from '@/utils/request'

export default {
  //1 新增账务
  adddetailed(target){
    return request({
      url:`/zwservice/detailed/addDetailed`,
      method:'post',
      data:target
    })
  },
  //2 查询一级分类
  getOneSubject(parentid){
    return request({
      url:`/zwservice/subject/getSubject/${parentid}`,
      method:'get',
    })
  },
  //3 根据id查询账务，回显
  getDetailedById(id){
    return request({
      url:`/zwservice/detailed/getDetailedById/${id}`,
      method:'get',
    })
  },
  //4 根据oneSubject查询twoSubject
  gettwoSubjectByoneSubject(id){
    return request({
      url:`/zwservice/subject/getTwoSubject/${id}`,
      method:'get',
    })
  },
  //5 修改账务
  updateDetailed(target){
    return request({
      url:`/zwservice/detailed/update`,
      method:'get',
      data:target
    })
  },
  
}
